package org.xiong.disk.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xiong.disk.bean.User;
import org.xiong.disk.mapper.UserMapper;
import org.xiong.disk.service.UserService;
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    UserMapper userMapper;

    // 继承UserService 接口并且实现部分函数
    @Override
    public User getUserByPhone(String phone) {
        return userMapper.getOneUserByPhone(phone);
    }
}
